package lab01.test04;

/**
 * Created by Administrator on 2017/10/16.
 */
public class Test04 {
    public static void main(String[] args) {
        int i=0,sum=0,i1,sum1=0,i2=0,sum2=0;
        do {//do while语句
            sum=sum+i;
            i++;
        }
        while(i<=100);
        System.out.println(sum);
        for (i1=0;i1<=100;i1++) {//for语句
            sum1=sum1+i1;
        }
        System.out.println(sum1);
        while(i2<=100)//while语句
            sum2=sum2+i2;
        System.out.println(sum2);
    }
}